package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.core.BaseEntity;

import java.time.LocalDateTime;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author fz
 * @since 2024-08-20
 */
@Getter
@Setter
@TableName("repair")
public class Repair extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 报修类别
     */
    private String type;

    /**
     * 报修内容
     */
    private String content;

    /**
     * 报修时间
     */
    private LocalDateTime repairTime;

    /**
     * 处理状态
     */
    private Integer status;
    /**
     * 用户姓名
     */
    private String username;

    public Repair(Long id,Integer status,Integer statu){
        super(id);
        this.status=statu;
    }

    public Repair(Long id,Integer userId, String type, String content, LocalDateTime repairTime, int status, String username){
        super(id);
        this.userId=userId;
        this.type=type;
        this.content=content;
        this.repairTime=repairTime;
        this.status=status;
        this.username=username;
    }
    public Repair(Integer userId,String type,String content,LocalDateTime repairTime,Integer status)
    {
        this.userId=userId;
        this.type=type;
        this.content=content;
        this.repairTime=repairTime;
        this.status=status;
    }
    public Repair(Long id,Integer userId,String type,String content,LocalDateTime repairTime,Integer status)
    {
        super(id);
        this.userId=userId;
        this.type=type;
        this.content=content;
        this.repairTime=repairTime;
        this.status=status;
    }
    public Repair(Long id,Integer status)
    {
        super(id);
        this.status=status;
    }
    public Repair(Long id,String username)
    {
        super(id);
        this.username=username;
    }


    public Repair(Integer userId, String type, String content, LocalDateTime repairTime, Integer status, String username) {
        this.userId=userId;
        this.type=type;
        this.content=content;
        this.repairTime=repairTime;
        this.status=status;
        this.username=username;
    }
}
